import com.zaxxer.hikari.HikariDataSource;

import java.sql.Connection;
import java.sql.SQLException;

public class hello {
    public static void main(String[] args) {
        HikariDataSource ds = new HikariDataSource();
        ds.setJdbcUrl("jdbc:mysql://127.0.0.1:3306/jdbc?characterEncoding=utf-8");
        ds.setUsername("root");
        ds.setPassword("526874");
        ds.setDriverClassName("com.mysql.cj.jdbc.Driver");
        ds.setMaximumPoolSize(10);
        ds.setMinimumIdle(5);
        ds.setConnectionTimeout(5000);
        try {
            Connection connection = ds.getConnection();
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }

    }
}
